Optimal. Leaf size=83 \[ -\frac {\sin ^3(c+d x) \cos (c+d x) (a+b \tan (c+d x))}{4 d}-\frac {\sin (c+d x) \cos (c+d x) (3 a+4 b \tan (c+d x))}{8 d}+\frac {3 a x}{8}-\frac {b \log (\cos (c+d x))}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.17, antiderivative size = 83, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 4, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.210, Rules used = {819, 635, 203, 260} \[ -\frac {\sin ^3(c+d x) \cos (c+d x) (a+b \tan (c+d x))}{4 d}-\frac {\sin (c+d x) \cos (c+d x) (3 a+4 b \tan (c+d x))}{8 d}+\frac {3 a x}{8}-\frac {b \log (\cos (c+d x))}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 260
Rule 635
Rule 819
Rubi steps
\begin {align*} \int \sin ^4(c+d x) (a+b \tan (c+d x)) \, dx &=\frac {\operatorname {Subst}\left (\int \frac {x^4 (a+b x)}{\left (1+x^2\right )^3} \, dx,x,\tan (c+d x)\right )}{d}\\ &=-\frac {\cos (c+d x) \sin ^3(c+d x) (a+b \tan (c+d x))}{4 d}+\frac {\operatorname {Subst}\left (\int \frac {x^2 (3 a+4 b x)}{\left (1+x^2\right )^2} \, dx,x,\tan (c+d x)\right )}{4 d}\\ &=-\frac {\cos (c+d x) \sin ^3(c+d x) (a+b \tan (c+d x))}{4 d}-\frac {\cos (c+d x) \sin (c+d x) (3 a+4 b \tan (c+d x))}{8 d}+\frac {\operatorname {Subst}\left (\int \frac {3 a+8 b x}{1+x^2} \, dx,x,\tan (c+d x)\right )}{8 d}\\ &=-\frac {\cos (c+d x) \sin ^3(c+d x) (a+b \tan (c+d x))}{4 d}-\frac {\cos (c+d x) \sin (c+d x) (3 a+4 b \tan (c+d x))}{8 d}+\frac {(3 a) \operatorname {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\tan (c+d x)\right )}{8 d}+\frac {b \operatorname {Subst}\left (\int \frac {x}{1+x^2} \, dx,x,\tan (c+d x)\right )}{d}\\ &=\frac {3 a x}{8}-\frac {b \log (\cos (c+d x))}{d}-\frac {\cos (c+d x) \sin ^3(c+d x) (a+b \tan (c+d x))}{4 d}-\frac {\cos (c+d x) \sin (c+d x) (3 a+4 b \tan (c+d x))}{8 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.08, size = 82, normalized size = 0.99 \[ \frac {3 a (c+d x)}{8 d}-\frac {a \sin (2 (c+d x))}{4 d}+\frac {a \sin (4 (c+d x))}{32 d}-\frac {b \left (\frac {1}{4} \cos ^4(c+d x)-\cos ^2(c+d x)+\log (\cos (c+d x))\right )}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.46, size = 74, normalized size = 0.89 \[ -\frac {2 \, b \cos \left (d x + c\right )^{4} - 3 \, a d x - 8 \, b \cos \left (d x + c\right )^{2} + 8 \, b \log \left (-\cos \left (d x + c\right )\right ) - {\left (2 \, a \cos \left (d x + c\right )^{3} - 5 \, a \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{8 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.88, size = 1066, normalized size = 12.84 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.31, size = 92, normalized size = 1.11 \[ -\frac {a \cos \left (d x +c \right ) \left (\sin ^{3}\left (d x +c \right )\right )}{4 d}-\frac {3 a \cos \left (d x +c \right ) \sin \left (d x +c \right )}{8 d}+\frac {3 a x}{8}+\frac {3 c a}{8 d}-\frac {b \left (\sin ^{4}\left (d x +c \right )\right )}{4 d}-\frac {b \left (\sin ^{2}\left (d x +c \right )\right )}{2 d}-\frac {b \ln \left (\cos \left (d x +c \right )\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.53, size = 87, normalized size = 1.05 \[ \frac {3 \, {\left (d x + c\right )} a + 4 \, b \log \left (\tan \left (d x + c\right )^{2} + 1\right ) - \frac {5 \, a \tan \left (d x + c\right )^{3} - 8 \, b \tan \left (d x + c\right )^{2} + 3 \, a \tan \left (d x + c\right ) - 6 \, b}{\tan \left (d x + c\right )^{4} + 2 \, \tan \left (d x + c\right )^{2} + 1}}{8 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.79, size = 155, normalized size = 1.87 \[ \frac {3\,a\,x}{8}+\frac {b\,\ln \left ({\mathrm {tan}\left (c+d\,x\right )}^2+1\right )}{2\,d}+\frac {3\,b}{4\,d\,\left ({\mathrm {tan}\left (c+d\,x\right )}^4+2\,{\mathrm {tan}\left (c+d\,x\right )}^2+1\right )}-\frac {5\,a\,{\mathrm {tan}\left (c+d\,x\right )}^3}{8\,d\,\left ({\mathrm {tan}\left (c+d\,x\right )}^4+2\,{\mathrm {tan}\left (c+d\,x\right )}^2+1\right )}+\frac {b\,{\mathrm {tan}\left (c+d\,x\right )}^2}{d\,\left ({\mathrm {tan}\left (c+d\,x\right )}^4+2\,{\mathrm {tan}\left (c+d\,x\right )}^2+1\right )}-\frac {3\,a\,\mathrm {tan}\left (c+d\,x\right )}{8\,d\,\left ({\mathrm {tan}\left (c+d\,x\right )}^4+2\,{\mathrm {tan}\left (c+d\,x\right )}^2+1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (a + b \tan {\left (c + d x \right )}\right ) \sin ^{4}{\left (c + d x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________